<?php



/**

 * @package WordPress

 * @subpackage WelCare

 * Template Name: Full Page Template

 */

get_header();


$sidebar = get_post_meta($post->ID, 'wl_custom_sidebar', true);


/** get header meta data */?>



<div id="<?php echo ( $sidebar != '0' ) ? 'container' : 'page-full'; ?>">


 
	<!-- Page Banner -->

	<?php fw_subpages_banner('full_width'); /** Show Subpages banner */ ?>
	<div class="clear"></div>


	<!-- BreadCrumbs -->

	<div class="breadcrumbs">

		<?php echo get_the_breadcrumb(); /** add breadcrumbs */?>

	</div>



	<?php if (have_posts()) : /** start our loop */ ?>

		<?php if( $sidebar != '-1' ): ?>
        	<div id="contents_area">
        <?php endif; ?>
        <div class="<?php echo ( $sidebar != '-1' ) ? 'contents' : 'container2'; ?>">

			<?php while(have_posts()) : the_post();

				/** print contents */

				the_content();

			endwhile; ?>

		</div>

		<?php if( $sidebar != '0' ): ?>
        	</div>
        <?php endif; ?>
        
	<?php endif; ?>
    
    <?php if( $sidebar != '-1' ): ?>
    	<div id="side_bar"><?php dynamic_sidebar( $sidebar ); ?></div>	
    <?php endif; ?>

</div>

<?php get_footer(); ?>